#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

void test0()
{
	HP hp;
	HeapInit(&hp);
	HeapPush(&hp, 7);
	HeapPush(&hp, 6);
	HeapPush(&hp, 5);
	HeapPush(&hp, 4);
	HeapPush(&hp, 3);
	HeapPush(&hp, 2);
	HeapPush(&hp, 1);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPrint(&hp);
	HeapDestory(&hp);
}

void test1()
{
	int a[] = { 7,6,5,4,3,2,1};
	HeapSort(a, sizeof(a) / sizeof(int));
	for (int i = 0; i < sizeof(a)/sizeof(int); i++)
	{
		printf("%d ", a[i]);
	}
}

typedef struct student
{
	int age;
	char name[10];
}stu;

int main()
{
	stu s1 = { 10,"li" };
	stu* ps1=&s1;
	printf("%p\n", ps1->name);
	printf("%p\n", &(ps1->name));
}